<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<sf:form commandName="account" id="inmoney-form">
	<div class="modal-body">
		<div class="form clearfix">
			<div class="form-group clearfix">
				<div class="control-label col-md-2">客户账号</div>
				<div class="col-md-10">
					<sf:hidden path="id.custAcctId" />
					${account.id.custAcctId}
				</div>
			</div>
			<div class="form-group clearfix">
				<div class="control-label col-md-2">会员号</div>
				<div class="col-md-10">
					<sf:hidden path="id.thirdCustId" />
					${account.id.thirdCustId}
				</div>
			</div>
			<div class="form-group clearfix">
				<div class="control-label col-md-2">会员名称</div>
				<div class="col-md-10">
					${account.custName}
				</div>
			</div>
			<div class="form-group clearfix">
				<div class="control-label col-md-2">证件类型</div>
				<div class="col-md-10">
					${account.idType}
				</div>
			</div>
			<div class="form-group clearfix">
				<div class="control-label col-md-2">证件号</div>
				<div class="col-md-10">
					${account.idCode}
				</div>
			</div>
			<div class="form-group clearfix">
				<div class="control-label col-md-2">金额</div>
				<div class="col-md-10">
					<input type="text" name="tranAmount" id="tranAmount" class="form-control" autocomplete="off">
				</div>
			</div>			
		</div>
	</div>
	<div class="modal-footer">
		<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
		<button type="button"  id="id_save_inmoney" class="btn btn-primary" onclick="save_inmoney()">确认</button>
	</div>
</sf:form>

<script language="javascript">
function save_inmoney(){
	$("#id_save_inmoney").attr("disabled",true);
	var callback=function(result){
		if (result.success){
			$("#modal-itemForm").modal("hide");
			esteel_account.account_table.ajaxRequestData();
		}else{
			alert(result.rspMsg);
			$("#id_save_inmoney").attr("disabled",false);
		}
	}
	$.post("saveInMoney",$("#inmoney-form").serialize(),callback,"json");
}
</script>